{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>某科技公司</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

     <link rel="stylesheet" type="text/css" href="{% static "lib/bootstrap/css/bootstrap.css" %}">
    <link rel="stylesheet" type="text/css" href="{% static "stylesheets/theme.css" %}">
    <link rel="stylesheet" href="{% static "lib/font-awesome/css/font-awesome.css" %}">
    <link rel="stylesheet" type="text/css" href="{% static "css/tekview.css" %}">
    <script src="{% static "lib/jquery-1.7.2.min.js" %}" type="text/javascript"></script>
     <script src="{% static "lib/bootstrap/js/bootstrap.min.js" %}" type="text/javascript"></script>
    <script src="{% static "lib/tekview.js" %}" type="text/javascript" charset="gbk"></script>
    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
        .anniu {
            background-color:#e7d785;
            font-style:georgia;
            background-image: -moz-linear-gradient(center top , #fffeb8, #c49c38);
        }
        .navbar-inner {
            position:fixed;
            left:0px
            top:0px
            z-index:20;
            width:100%;
            hight:45px;
            background:#ccc
        }
        .blank{ clear:both; overflow:hidden; display:block; overflow:hidden;height:37px;}


    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->

</head>

<!--[if lt IE 7 ]>
<body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]>
<body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]>
<body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]>
<body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->

<div class="navbar">
    <div class="navbar-inner">
        <ul class="nav pull-right">

            <li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">功能未添加</a></li>
            <li id="fat-menu" class="dropdown">
                <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-user"></i> {{ username }}
                    <i class="icon-caret-down"></i>
                </a>

                <ul class="dropdown-menu">
                    <li><a tabindex="-1" href="#">我的账户</a></li>
                    <li class="divider"></li>
                    <li><a tabindex="-1" class="visible-phone" href="#">setting</a></li>
                    <li class="divider visible-phone"></li>
                    <li><a tabindex="-1" href="{% url "devops.auth.views.dt_logout" %}">注销</a></li>
                </ul>
            </li>

        </ul>
        <a class="brand"><span class="first"></span> <span class="second">内部资源管理系统</span></a>
    </div>
</div>
<span class="blank"></span>

<div class="sidebar-nav">
    <form class="search form-inline">
        <input type="text" placeholder="查找...">
    </form>

    <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>资源管理<i class="icon-chevron-up"></i></a>
    <ul id="dashboard-menu" class="nav nav-list collapse in">
        <li ><a href="{% url "gaga.views.index" %}">首页</a></li>
        <li ><a href="{% url "gaga.views.testresource" %}">资源列表</a></li>
        <li ><a href="#">资源申请</a></li>
        <li ><a href="{% url "gaga.views.wiki" %}">知识库</a></li>
        <li ><a href="{% url "gaga.views.samba" %}">服务器管理</a></li>
    </ul>

     <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-briefcase"></i>业务管理<i class="icon-chevron-up"></i></a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li ><a href="{% url 'gaga.views.noreal'%}" target="_blank">1</a></li>
            <li ><a href="{% url 'gaga.views.noreal'%}" target="_blank">2</a></li>
            <li ><a href="{% url 'gaga.views.noreal'%}" target="_blank">3</a></li>
        </ul>

        <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i> Devops<i class="icon-chevron-up"></i></a>
        <ul id="error-menu" class="nav nav-list collapse">
            <li ><a href="/ansible" >Ansible</a></li>
            <li ><a href="{% url 'gaga.views.noreal'%}" target="_blank">Zabbix</a></li>
            <li ><a href="{% url 'gaga.views.noreal'%}" target="_blank">Cobbler</a></li>

        </ul>

        <a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>统一终端<i class="icon-chevron-up"></i></a>
        <ul id="legal-menu" class="nav nav-list collapse">

           <li ><a href="https://192.168.0.174" target="_blank">webSSH</a></li>
        </ul>

    <a href="{% url 'gaga.views.webcontrol'%}" class="nav-header"><i class="icon-question-sign"></i>Web控制台</a>

</div>


<div class="content">

    <div class="header">

        <h1 class="page-title"> {% block page-title %}资源列表 {% endblock %}</h1>

    </div>

{% block index %}
    <div class="container-fluid">
        <div class="row-fluid" >
            <div style="padding:1px;background-color:#F0FFFF">
             <ul class="nav  nav-pills" id="nav">
                 {% block active %}
                <li role="presentation" class="active"><a href="/testresource/">app资源列表</a></li>
                    <li role="presentation"><a href="/testresource/2">IP地址资源统计</a></li>
                        <li role="presentation"><a href="/testresource/3">主机账户密码</a></li>
                 {% endblock %}
                  </ul>
                </div>
            <div class="btn-toolbar">
                <div class="btn-group" style="float:right">
                    {% block myModal1 %}
                     <a id="modal-476809" href="#modal-container-476809" role="button" class="btn" data-toggle="modal">上传Execl</a>
                    {% endblock %}
                </div>
            </div>


             <div class="well">
                {% block table %}
                <table id='tab2' cellpadding='0' cellspacing='0'  class="table table-hover table-striped table-bordered ">
                    <thead>
                    <tr>
                        <th style="width:8%;">类型</th>
                        <th style="width:8%;">版本</th>
                        <th style="width:20%;">IP地址</th>
                        <th style="width:10%;">用户名</th>
                        <th style="width:9%;">密码</th>
                        <th style="width:13%;">备注</th>
                        <th style="width:10%;">测试负责人</th>
                        <th style="width:10%;">开发负责人</th>
                        <th style="width:2%;">管理</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% for i in list%}
                    <tr>

                        <td>{{ i.leixin }}</td>
                        <td>{{ i.banben }}</td>
                        <td>{{ i.ip }}</td>
                        <td>{{ i.username }}</td>
                        <td>{{ i.password }}</td>
                        <td>{{ i.beizhu }}</td>
                        <td>{{ i.tester }}</td>
                        <td>{{ i.rd }}</td>
                        <td>
                            <a id="test" href="javascript:void(0)"><i class="icon-pencil"></i></a>
                            <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                        </td>
                    </tr>
                    {% endfor %}
                    </tbody>
                </table>
                {% endblock %}
                 <hr>
                <div class="pagination" align="center">
                    <span>
                        {% if posts.has_previous %}
                        <a href="?page={{ posts.previous_page_number }}">&laquo;</a>
                        {% else %}
                    <span></span>
                        {% endif %}
                    <span >
                        第 {{ posts.number }} 页/共 {{ posts.paginator.num_pages }} 页
                     </span>
                        {% if posts.has_next %}
                        <a href="?page={{ posts.next_page_number }}">&raquo;</a>
                        {% else %}
                     <span ></span>
                        {% endif %}
                     </span>
                 </div>


             <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-header" style="background-color:#F0FFFF">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="myModalLabel">删除监控项</h3>
                </div>
                <div class="modal-body">
                    <p class="error-text"><i class="icon-warning-sign modal-icon"></i>确定要删除这个监控项?</p>
                </div>
                <div class="modal-footer" style="background-color:#F0FFFF">
                    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                    <button class="btn btn-danger" data-dismiss="modal">删除</button>
                </div>
            </div
        </div>
    </div>
</div>
 <footer>
    <p>&copy; 2014<a href="http://www.tekview.com/" target="_blank">APEX</a></p>
    </footer>
<div id="modal-container-476809" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-header">
					 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h3 id="myModalLabel">
						标题栏
					</h3>
				</div>
				<div class="modal-body">
					<p>
						显示信息
					</p>
				</div>
				<div class="modal-footer">
					 <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button class="btn btn-primary">保存设置</button>
{% endblock %}

<script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });


    $("#nav li").click(function(){
    var inx = $(this).index();
     $("#nav li").removeClass("active");
    $("#nav li").eq(inx).addClass("active");
     });
    </script>

</body>
</html>


